import numpy as np

def softmax(x):
    exp_x= np.exp(x-max(x))
    print(exp_x/np.sum(exp_x))
    return exp_x/np.sum(exp_x)